/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconHistory: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M512 128c212.064 0 384 171.936 384 384s-171.936 384-384 384a384.096 384.096 0 0 1-377.184-311.68 32 32 0 0 1 62.848-11.968A320.096 320.096 0 0 0 512 832c176.736 0 320-143.264 320-320S688.736 192 512 192a320.064 320.064 0 0 0-277.952 161.248l87.872 1.024a32 32 0 0 1 31.424 28.352l0.224 4.032a32 32 0 0 1-28.352 31.424l-4.032 0.192-160.416-1.856a32 32 0 0 1-31.36-27.68l-0.256-3.936-1.856-160.416a32 32 0 0 1 63.68-4.768l0.32 4 0.832 75.808A384 384 0 0 1 512 128z m-31.136 192a32 32 0 0 1 31.68 28.416l0.16 3.712-0.64 146.656 118.56 118.592a32 32 0 0 1 2.656 42.24l-2.656 3.008a32 32 0 0 1-42.24 2.656l-3.008-2.656-128-128a32 32 0 0 1-9.12-18.56L448 511.904l0.704-160A32 32 0 0 1 480.864 320z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconHistory.defaultProps = {
  size: 18,
};

export default IconHistory;
